bind_address = ("0.0.0.0", 3000)
backlog = 100
log_file = ""
pid_file = "./pyim.pid"
chdir = "."
max_clients = 5
charset = "utf-8"
daemon = False
mysql_connect_str = {"host": "127.0.0.1", "port": 3306, "user": "pyim", "password": "", "database": "pyim_user"}
auth_modules = ["pyim.auths.auth_user_pass"]
logger = {
    "log_level": "DEBUG",
}

request_processor = {
    "backend": "pyim.processors.fifo.LocalQueue",
    "arguments": {
        "num_workers": 2,
        "request_queue_size": 100
    }
}
caches = {
    "default": {
        "engine": "pyim.cache.DBCache",
        "location": "im_cache",
        "options": {}
    },
    "redis": {
        "engine": "pyim.cache.RedisCache",
        "location": ("127.0.0.1", 6379),
        "options": {}
    }
}

middlewares = [
    "pyim.middlewares.websocket.WebSocketMiddleWare"
]
